package cn.codeinn.generator.service;

import java.util.List;

public interface IService<T> {

	boolean insert(T entity);

	boolean insertSelective(T entity);

	boolean insertList(List<T> entityList);

	boolean insertUseGeneratedKeys(T entity);

	boolean deleteByPrimaryKey(Object id);

	boolean delete(T entity);

	boolean deleteBatchIds(List<? extends Object> idList);

	boolean updateByPrimaryKey(T entity);

	boolean updateByPrimaryKeySelective(T entity);

	boolean updateBatchById(List<T> entityList);

	boolean updateAllColumnBatchById(List<T> entityList);

	T selectByPrimaryKey(Object id);

	List<T> selectAll();

	Integer selectByMap(T entity);

	T selectOne(T entity);
}
